// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 
// Source File Name:   MakeOrderNum.java

package com.ronglian.register_mini_program.util;

import java.text.SimpleDateFormat;
import java.util.Date;

public class MakeOrderNum {
    private static Object lockObj = "lockerOrder";
    private static long orderNumCount = 53214L;
    private static int maxPerMSECSize = 100000;

    public MakeOrderNum() {
    }

    public static String makeOrderNum() {
        try {
            String finOrderNum = "";
            Object var1 = lockObj;
            synchronized (lockObj) {
                long nowLong = Long.parseLong((new SimpleDateFormat("yyyyMMddHHmmssSSS")).format(new Date()));
                if (orderNumCount >= (long) maxPerMSECSize) {
                    orderNumCount = 0L;
                }

                String countStr = (long) maxPerMSECSize + orderNumCount + "";
                finOrderNum = nowLong + countStr.substring(1);
                ++orderNumCount;
                return finOrderNum;
            }
        } catch (Exception var7) {
            var7.printStackTrace();
            return null;
        }
    }
}
